<div id="welcome">
    <% if @account %>
        Welcome, <%=@account.login%> |
        <%= link_to "Log out", :controller => 'account', :action => 'logout' %>
    <% else %>
        <%= link_to_unless_current "Log in", :controller => 'account', :action => 'login' %>
    <% end %>	
</div>